<%DIRECTIVE SAFE_OUTPUT_OPEN;%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta content="${tdk.city}${tdk.type}门票，${tdk.city}${tdk.type}门票预订，最新${tdk.type}演出门票" name="keywords">
	<meta content="${tdk.city}${tdk.type}演出门票信息尽在永乐票务官方网站，另外我们还提供提供最新${tdk.city}${tdk.typeother}" name="description">
	<!-- 引入公共css资源 -->
	<%include("/common/head.html",{}){}%>
	<link href="${staticPath}/css/columns.css${version}" type="text/css" rel="stylesheet" />
	<link href="${staticPath}/My97DatePicker/skin/WdatePicker.css${version}" type="text/css" rel="stylesheet" />
	<title><%if(result.params.keyword != null && result.params.keyword != ""){%>${result.params.keyword}演出信息搜索结果-永乐票务官方网站<%}else {%>最新${tdk.city}${tdk.type}演出门票预订信息-永乐票务 官方网站<%}%> </title>	
</head>
<body>
<!-- 引入 top导航条 -->
<div id="top_ajax" class="top-w"></div>
<!-- 引入搜索框 -->
<%include("/common/search.html",{}){}%>
<!-- 引入菜单导航 -->
<%include("/common/nav.html",{}){}%>
<div class="search">
<%include("/search/citys.html",{}){}%>
<%include("/search/type.html",{}){}%>
<%include("/search/date.html",{}){}%>
</div>
<%include("/search/searchFilter.html",{}){}%>
<!-- 引入footer -->
<%include("/common/footer.html",{}){}%>
<!-- 引入公共js资源 -->
<%include("/common/bottom.html",{}){}%>	
<script type="text/javascript" src="${staticPath}/My97DatePicker/WdatePicker.js${version}"></script>
<script type="text/javascript" src="${staticPath}/js/search/search.js${version}"></script>
<%if(result.more == "true"){%>
<script type="text/javascript">
    var ie  = $.browser.msie;
	var pageNum = 1;
	var pageSize = ${result.pageSize};
	$(function(){
		var $lock = true;
		/* $(window).scroll(function(){
			if ($(document).height() - $(this).scrollTop() - $(this).height()<600){  
				 if($lock){
					 if('${result.more}' != ''){
						 loadPage(++pageNum);
					 }else{
						 $lock = false;
						 $("#pages").append("<div class=\"search-ajaxLoad clearfloat\"><ul><li class=\"search-ajaxLoad-b\">已经加载完全部搜索结果</li></ul></div>");
					 } 
				 }
			}
		}); */
		
		function loadPage(pNum){
			var $time 				= (pNum == 1) ? 10 : 1500;
			var $baseURL 			= ie ? encodeURI(decodeURI(window.location.href)) : window.location.href;
			//var $baseURL 			= window.location.href;
			var queryParam 			= (($baseURL.indexOf("?")>=0) ? "&" : "?") + "pageNum=" + pNum;
			var $url 				= $baseURL + queryParam;
			if($url.indexOf('/search/result') == -1){
				$url = $url.replace('/search','/search/result');
			}
			$("#loading").show();
			$lock = false;
			
			window.setTimeout(function(){
				var html = getAjaxHtml($url,{},'get');
				if(html != null && html != ''){
					$("#pages").append(html);
					$("#loading").hide();
					$lock = true;
				}else {
					$lock = false;
					 $("#pages").append("<div class=\"search-ajaxLoad clearfloat\"><ul><li class=\"search-ajaxLoad-b\">已经加载完全部搜索结果</li></ul></div>");
				}
				/* $.getJSON($url, function(data){
					$lock = true;
					result = data.products;
					$("#pages").append($template(productPageTemplate));
					$("#loading").hide();
				}); */
			}, $time);
		}
	});
</script>
<%}%>
</body>
</html>
<%DIRECTIVE SAFE_OUTPUT_CLOSE;%>